/**
 * Created by register on 2017/8/30.
 */

var vm = new Vue({
    el: '#rrapp',
    data : {
        req : {
            name : '',
            table : 0
        },
        msg : ''
    },
    methods: {
        commitR : function () {
            $.ajax({
                url: "../menu",
                type: 'post',
                contentType:"application/json;charset=UTF-8",
                data : JSON.stringify(vm.req),
                success : function (result) {
                    vm.msg = result.msg;
                    alert(result.msg);
                }
            });
        }
    }
});